//
//  EpointWebInfoListCellUniversalCell.m
//  EpointFrame5
//
//  Created by 李亚春 on 14-2-20.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "EpointWebInfoListCellUniversalCell.h"

@implementation EpointWebInfoListCellUniversalCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        
    }
    return self;
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier containingTableView:(UITableView *)containingTableView leftUtilityButtons:(NSArray *)leftUtilityButtons rightUtilityButtons:(NSArray *)rightUtilityButtons
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier containingTableView:containingTableView leftUtilityButtons:leftUtilityButtons rightUtilityButtons:rightUtilityButtons];
    if (self) {
        // Initialization code
        self.lbTitle = [[UILabel alloc]initWithFrame:CGRectMake(7, 3, AppWidth-14, 45)];
        self.lbTitle.numberOfLines = 2;
        self.lbPerson = [[UILabel alloc]initWithFrame:CGRectMake(7, 49, AppWidth/2-7, 20)];
        self.lbPerson.textColor = COLOR(102, 102, 255);
        [self.lbPerson setFont:[UIFont systemFontOfSize:13]];
        self.lbAttach = [[UILabel alloc]initWithFrame:CGRectMake(AppWidth-25-5, 52, 25, 14)];
        self.lbAttach.text = @"附件";
        self.lbAttach.textAlignment = NSTextAlignmentCenter;
        [self.lbAttach setFont:[UIFont systemFontOfSize:11]];
        self.lbAttach.backgroundColor = COLOR(73, 135, 193);
        self.lbAttach.textColor = [UIColor whiteColor];
        
        self.lbFeedBack = [[UILabel alloc]initWithFrame:CGRectMake(AppWidth/2-7, 49, AppWidth-self.lbPerson.frame.size.width-self.lbAttach.frame.size.width-10, 20)];
        [self.lbFeedBack setFont:[UIFont systemFontOfSize:13]];
        self.lbFeedBack.textColor =[UIColor darkGrayColor];
        self.lbFeedBack.textAlignment = NSTextAlignmentRight;
        self.ivStatus = [[UIImageView alloc]initWithFrame:CGRectMake(5, 23, 10, 10)];
        [self.ivStatus setImage:[UIImage imageNamed:@"icon_status_unread"]];
        
        [self.contentView addSubview:self.lbTitle];
        [self.contentView addSubview:self.lbPerson];
        [self.contentView addSubview:self.lbAttach];
        [self.contentView addSubview:self.lbFeedBack];
        [self.contentView addSubview:self.ivStatus];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
